import VueRouter from 'vue-router'

//导入相对应的路由组件
import HomeContainer from './compoments/tabber/HomeContainer.vue';
import MemberContainer from './compoments/tabber/MemberContainer.vue';
import SearchContainer from './compoments/tabber/SearchContainer.vue';
import ShopContainer from './compoments/tabber/ShopContainer.vue';





// 创建路由对象
var router = new VueRouter({
    routes: [//配置路由规则
        { path: '/', component: HomeContainer },
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/search', component: SearchContainer },
        { path: '/shopcar', component: ShopContainer }
    ],
    linkActiveClass: 'mui-active'//覆盖默认的路由高亮类
});

//把路由对象暴露出去
export default router